package com.share.shareplatform.shareuser.service.impl;


import com.share.shareplatform.shareuser.dao.RoleDao;
import com.share.shareplatform.pojo.Role;
import com.share.shareplatform.shareuser.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;

public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public Role findOneByName(String name) {
        return roleDao.findOneByName(name);
    }

    @Override
    public Role findOneById(Integer id) {
        return roleDao.findOneById(id);
    }
}
